package com.achievement.mappings;

import com.achievement.domain.dto.AppraisalProductAuthorDTO;
import com.achievement.domain.dto.AppraisalProductDTO;
import com.achievement.domain.entity.AppraisalProductAuthorEntity;
import com.achievement.domain.entity.AppraisalProductEntity;
import com.achievement.domain.vo.AppraisalProductAuthorVO;
import com.achievement.domain.vo.AppraisalProductVO;
import org.mapstruct.Mapper;

/**
 * kygladmin AppraisalProductMapping
 */

@Mapper(componentModel = "spring")
public interface AppraisalProductMapping {

    AppraisalProductEntity dto2Entity(AppraisalProductDTO dto);

    AppraisalProductVO entity2Vo(AppraisalProductEntity entity);

    AppraisalProductAuthorVO authorEntity2Vo(AppraisalProductAuthorEntity appraisalProductAuthorEntity);

    AppraisalProductAuthorEntity appraisalDto2AppraisalEntity(AppraisalProductAuthorDTO appraisalProductAuthorDTO);
}
